// 《安全考核及奖惩》页面接口文件
import request from '@/utils/request.js';

/**查询 考核登记接口 */
export function listRegistration(query){
  return request({
    url: '/system/registration/list',
    method: 'get',
    params: query
  })
}
/**新增 考核登记接口 */
export function addRegistration(data){
  return request({
    url: '/system/registration',
    method: 'post',
    data
  })
}
/**编辑 考核登记接口 */
export function editRegistration(data){
  return request({
    url: '/system/registration',
    method: 'put',
    data
  })
}
/**删除 考核登记接口 */
export function deleteRegistration(ids){
  return request({
    url: `/system/registration/${ids}`,
    method: 'delete',
  })
}
/**详情 考核登记接口 */
export function detailRegistration(ids){
  return request({
    url: `/system/registration/${ids}`,
    method: 'get',
  })
}

/**生成 考核统计接口 */
export function generateRegistration(data){
  return request({
    url: `/system/registration/assessment/statistics`,
    method: 'post',
    data
  })
}

/**详情 考核统计接口 */
export function detailStatistics(ids){
  return request({
    url: `/system/registration/assessment/statistics/${ids}`,
    method: 'get',
    
  })
}
/**查询 考核统计接口 */
export function listStatistics(query){
  return request({
    url: `/system/registration/assessment/statistics/list`,
    method: 'get',
    params: query
  })
}
/**删除 考核统计接口 */
export function deleteStatistics(ids){
  return request({
    url: `/system/registration/assessment/statistics/delete/${ids}`,
    method: 'delete'
  })
}